package com.erp.erp_entitys.Purchase;

import java.util.Date;

/**
 * 采购操作日志
 */
public class PurchaseLog {
    /**
     * 主键
     */
    private Integer id;

    /**
     * 操作id
     */
    private Integer upId;

    /**
     * 操作类型（1：新增 2：删除 3：更新）
     */
    private Integer upType;

    /**
     * 操作对象（1：采购主表，2：采购产品）
     */
    private Integer upModel;

    /**
     * 操作人员
     */
    private String upUser;

    /**
     * 操作时间
     */
    private Date upTime;

    /**
     * 操作内容
     */
    private String upContext;

    public PurchaseLog() {
    }

    public PurchaseLog(Integer upId, Integer upType, Integer upModel, String upUser, Date upTime, String upContext) {
        this.id = id;
        this.upId = upId;
        this.upType = upType;
        this.upModel = upModel;
        this.upUser = upUser;
        this.upTime = upTime;
        this.upContext = upContext;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUpId() {
        return upId;
    }

    public void setUpId(Integer upId) {
        this.upId = upId;
    }

    public Integer getUpType() {
        return upType;
    }

    public void setUpType(Integer upType) {
        this.upType = upType;
    }

    public Integer getUpModel() {
        return upModel;
    }

    public void setUpModel(Integer upModel) {
        this.upModel = upModel;
    }

    public String getUpUser() {
        return upUser;
    }

    public void setUpUser(String upUser) {
        this.upUser = upUser == null ? null : upUser.trim();
    }

    public Date getUpTime() {
        return upTime;
    }

    public void setUpTime(Date upTime) {
        this.upTime = upTime;
    }

    public String getUpContext() {
        return upContext;
    }

    public void setUpContext(String upContext) {
        this.upContext = upContext == null ? null : upContext.trim();
    }
}